home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
JCSM Shareware Collection 1993 November
/
JCSM Shareware Collection - 1993-11.iso
/
cl760
/
edgraphj.lzh
/
EXPANDME.EXE
/
lha
/
POLAR1.GRF
< prev
next >
Wrap
Text File
|
1992-10-01
|
1KB
|
35 lines
{------------------------------------------------------------------------
{ POLAR1.GRF - EdGraph demo program (polar coords)
{
{ Type - AltV to see this demo, or
{ - AltP to print it, but first...SPECIFY WHAT PRINTER YOU ARE USING:
{--------------------------------------------------------------------------}
Printer=1; { Change the value to one of these, depending on your printer:}
{ 1 = Generic 9 pin dot matrix, }
{ 2..7 = Epson: 2=MX, 3=RX, 4=FX, 5=EX, 6=LX, 7=LQ }
{ 8..9 = IBM: 8=ProPrinter, 9=QuietWriter }
{ 10 = NEC 24 pin }
{ 11 = Toshiba 24 pin }
{ 12..13 = HP: 12=DeskJet, 13=LaserJet }
{ 14 = PostScript printers }
{--------------------------------------------------------------------------}
PgHeight=120; PgWidth=160; Orientn=1; Res=1;
Initialise(Printer,PgHeight,PgWidth,Orientn,Res,"LPT1");
x1=-2; y1=-1; x2=2; y2=2;
read(x1,"Enter new value (current value = ",x1,")");
NewPlot(x1,y1,x2,y2,25,120,20,80,0,0);
xaxis("x",y1,x1,1,1,1,1,1);
yaxis("y",x1,y1,1,1,1,1,1);
xaxis("",y2,x1,1,2,1,0,0);
yaxis("",x2,y1,1,2,1,0,0);
Line(x1,0,x2,0);
Line(0,y1,0,y2);
Polar(1); MoveTo(0,1);
For i=0 to 7 step 0.05;
LineTo(i,1+i*sin(i)/3);
EndFor;